<template>
    <div class="new-pro px15 py20 bgc12">
      <h1 class="fz18 lh14n pb15">新品首发</h1>
      <newpro-card v-for="(item, idx) in newpro" :key="idx" :newpro="item"/>
    </div>
</template>

<script>
    import NewproCard from './newpro-card'
    export default {
        components: {
          NewproCard
        },
      data() {
        return {
          newpro: []
        }
      },
      async created () {
        let { status, data } = await this.$axiosApi.getIndexNewpro()
        if (status === 200 && data.code === 0) {
          this.newpro = data.data
        }
      }
    }
</script>

<style scoped>

</style>
